/**
 * @Title: settle_router.js
 * @Description: 结算指标router
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @author QIANDUO875
 * @date 2014年9月25日 下午2:01:05
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('mhis.configs');
	app.config(['BaseURL','Config', function(baseUrl,Config){
		
		var states = Config.states;
		
		states.push({
			name:'institutionInfoQuery',
	        url:'/institutionInfoQuery',
	        data:{
	        	title:'我的工作区',
	        	tabRoot:'institutionInfoQuery'
	        },
	        deepStateRedirect: true,
	        sticky: true,
	        views:{
	            'institutionInfoQuery@':{
	            	template:'<div ui-view class="full-height full-width"></div>',
	            	controller:function() {
	            	}
	            }
	        }
		});
		
		
		states.push({
			name:'institutionInfoQuery.institutionQuery',
	        url:'/institutionQuery',
	        data:{
	        	title:'机构信息',
	        	tabRoot:'institutionInfoQuery'
	        },
	        views:{
	        	'@institutionInfoQuery':{
	        		templateUrl:baseUrl+'views/hcpms/institutionQuery/list.html',
	        		controller:'institutionListQueryCtrl'
	        	}
	        }
		});
		
		states.push({
			name:'institutionInfoQuery.pharmacyQuery',
	        url:'/pharmacyQuery',
	        data:{
	        	title:'机构信息',
	        	tabRoot:'institutionInfoQuery'
	        },
	        views:{
	        	'@institutionInfoQuery':{
	        		templateUrl:baseUrl+'views/hcpms/institutionQuery/list.html',
	        		controller:'pharmacyListQueryCtrl'
	        	}
	        }
		});
		
		states.push({
			name:'institutionInfoQuery.addInstitutionQuery',
	        url:'/addInstitutionQuery',
	        data:{
	        	title:'机构信息',
	        	tabRoot:'institutionInfoQuery'
	        },
	        views:{
	        	'@institutionInfoQuery':{
	        		templateUrl:baseUrl+'views/hcpms/institutionQuery/newBase_info.html',
	        		controller:'institutionAddQueryCtrl'
	        	}
	        }
		});
		
        states.push({
            name:'institutionInfoQuery.institutionDetailQuery',
            url:'/institutionDetailQuery/:providerid/:type',
            data:{
                title:'机构信息',
                tabRoot:'institutionInfoQuery'
            },
            views:{
                '@institutionInfoQuery':{
                    templateUrl:baseUrl+'views/hcpms/institutionQuery/base_info.html',
                    controller:'institutionDetailQueryCtrl'
                }
            }
        });
        
        states.push({
            name:'institutionInfoQuery.phmaracyDetailQuery',
            url:'/phmaracyDetailQuery/:providerid/:type',
            data:{
                title:'机构信息',
                tabRoot:'institutionInfoQuery'
            },
            views:{
                '@institutionInfoQuery':{
                    templateUrl:baseUrl+'views/hcpms/institutionQuery/pharmacy_info.html',
                    controller:'institutionDetailQueryCtrl'
                }
            }
        });
        
        
        
        states.push({
            name:'institutionInfoQuery.relationQuery',
            url:'/relationQuery/:providerid/:type',
            data:{
                title:'机构信息',
                tabRoot:'institutionInfoQuery'
            },
            views:{
                '@institutionInfoQuery':{
                    templateUrl:baseUrl+'views/hcpms/institutionQuery/relation_info.html',
                    controller:'relationQueryCtrl'
                }
            }
        });
        
        
        
        states.push({
            name:'institutionInfoQuery.doctorInfoDetailQuery',
            url:'/doctorInfoDetailQuery/:providerid/:type',
            data:{
                title:'机构信息',
                tabRoot:'institutionInfoQuery'
            },
            views:{
                '@institutionInfoQuery':{
                    templateUrl:baseUrl+'views/hcpms/institutionQuery/doctor_info.html',
                    controller:'doctorInfoQueryCtrl'
                }
            }
        });
        
        states.push({
            name:'institutionInfoQuery.addDoctorInfoQuery',
            url:'/addDoctorInfoQuery/:providerid/:doctorId/:type',
            data:{
                title:'机构信息',
                tabRoot:'institutionInfoQuery'
            },
            views:{
                '@institutionInfoQuery':{
                    templateUrl:baseUrl+'views/hcpms/institutionQuery/doctor_info_add.html',
                    controller:'addDoctorInfoQueryCtrl'
                }
            }
        });
//	    states.push({
//	        name:'institution',
//	        url:'/institution',
//	        data:{
//	        	title:'我的工作区',
//	        	tabRoot:'institution'
//	        },
//	        views:{
//	            '@idesk':{
//	            	templateUrl:baseUrl+'/views/infra/idesk/idesk_check.html',
//	            	controller:'IDeskCtrl'
//	            }
//	        }
//	    });
		
    	/**
		 * 协议信息
		 * 
		 */
        states.push({
			name:'agreementOther',
	        url:'/agreementOther',
	        data:{
	        	title:'我的工作区',
	        	tabRoot:'agreementOther'
	        },
	        deepStateRedirect: true,
	        sticky: true,
	        views:{
	            'agreementOther@':{
	            	template:'<div ui-view class="full-height full-width"></div>',
	            	controller:function() {
	            	}
	            }
	        }
		});
  
			states.push({
				name:'agreementOther.agreementBaseOther',
		        url:'/agreementBaseOther',
		        data:{
		        	title:'协议信息',
		        	tabRoot:'agreementOther'
		        },
		        views:{
		            '@agreementOther':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/agreement_view.htm',
		            	controller:'AgreementListQueryCtrl'
		            }
		        }
			});
			
			states.push({
				name:'agreementOther.detailOther',
		        url:'/detailOther/:providerid',
		        data:{
		        	title:'协议信息',
		        	tabRoot:'agreementOther'
		        },
		        views:{
		            '@agreementOther':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/detail.htm',
		            	controller:'AgreementDetailQueryCtrl'
		            }
		        }
			});
			
			states.push({
	            name:'agreementOther.paymentDetailOther',
	            url:'/paymentDetailOther/:providerid',
	            data:{
	                title:'协议信息',
	                tabRoot:'agreementOther'
	            },
	            views:{
	                '@agreementOther':{
	                    templateUrl:baseUrl+'views/hcpms/agreementQuery/payment_detail.htm',
	                    controller:'AgreementPayMentQueryCtrl'
	                }
	            }
	        });
	        
	        states.push({
	            name:'agreementOther.prePayMentOther',
	            url:'/prePayMentOther/:providerid',
	            data:{
	                title:'协议信息',
	                tabRoot:'agreementOther'
	            },
	            views:{
	                '@agreementOther':{
	                    templateUrl:baseUrl+'views/hcpms/agreementQuery/prepayment.htm',
	                    controller:'AgreementPreAuthQueryCtrl'
	                }
	            }
	        });
			
	        states.push({
	            name:'agreementOther.addAgreementOther',
	            url:'/addAgreementQuery/:providerid',
	            data:{
	                title:'协议信息',
	                tabRoot:'agreementOther'
	            },
	            views:{
	                '@agreementOther':{
	                    templateUrl:baseUrl+'views/hcpms/agreementQuery/agreement_add.htm',
	                    controller:'AgreementAddQueryCtrl'
	                }
	            }
	        });
	        
	        /**
	         * 人员信息
	         */
	        
			states.push({
				name:'insuranceQuery',
		        url:'/insuranceQuery',
		        data:{
		        	title:'人员信息',
		        	tabRoot:'insuranceQuery'
		        },
		        deepStateRedirect: true,
		        sticky: true,
		        views:{
		            'insuranceQuery@':{
		            	template:'<div ui-view class="full-height full-width"></div>',
		            	controller:function() {
		            	}
		            }
		        }
			});
			
	        states.push({
				name:'insuranceQuery.insuranceListQuery',
		        url:'/insuranceListQuery',
		        data:{
		        	title:'人员信息',
		        	tabRoot:'insuranceQuery'
		        },
//		        deepStateRedirect: true,
//		        sticky: true,
		        views:{
		            '@insuranceQuery':{
		            	templateUrl:baseUrl+'views/hcpms/insuranceQuery/insurance_view.html',
		            	controller:'InsuranceQueryCtrl'
		            }
		        }
			});
	        
	        
	        states.push({
				name:'insuranceQuery.detailQuery',
		        url:'/detailQuery/:providerid/:doctorId/:type',
		        data:{
		        	title:'人员信息',
		        	tabRoot:'insuranceQuery'
		        },
		        sticky: true,
		        views:{
		            '@insuranceQuery':{
		            	templateUrl:baseUrl+'views/hcpms/institutionQuery/doctor_info_add.html',
		            	controller:'addDoctorInfoQueryCtrl'
		            }
		        }
			});
	        
	        /**
	         * 评分标准
	         */
	        states.push({
				name:'gradingOther',
		        url:'/gradingOther',
		        data:{
		        	title:'评分标准',
		        	tabRoot:'gradingOther'
		        },
		        deepStateRedirect: true,
		        sticky: true,
		        views:{
		            'gradingOther@':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/grading/grading_view.html',
		            	controller:'GradingQueryCtrl'
		            }
		        }
			});
	        /**
	         * 医疗机构评分标准
	         */
	        states.push({
				name:'gradingOther.orgGradingOther',
		        url:'/orgGradingOther',
		        data:{
		        	title:'评分标准',
		        	tabRoot:'gradingOther'
		        },
		        views:{
		            '@gradingOther':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/grading/orgGrading_view.html',
		            	controller:'OrgGradingQueryCtrl'
		            }
		        }
			});
	        /**
	         *  医保服务人员 评分标准
	         */
	        states.push({
				name:'gradingOther.insuranceOther',
		        url:'/insuranceOther',
		        data:{
		        	title:'评分标准',
		        	tabRoot:'gradingOther'
		        },
		        views:{
		            '@gradingOther':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/grading/insuranceGrading_view.html',
		            	controller:'InsuranceGradingQueryCtrl'
		            }
		        }
			});
	        
	        /**
	         *  药店 评分标准
	         */
	        states.push({
				name:'gradingOther.drugstoreOther',
		        url:'/drugstoreOther',
		        data:{
		        	title:'评分标准',
		        	tabRoot:'gradingOther'
		        },
		        views:{
		            '@gradingOther':{
		            	templateUrl:baseUrl+'views/hcpms/agreementQuery/grading/drugstoreGrading_view.html',
		            	controller:'DrugstoreGradingQueryCtrl'
		            }
		        }
			});
	        
	        
	        
	        /**
	         * 其他岗位
	         */    
	        states.push({
				name:'institutionInfoOther',
		        url:'/institutionInfoOther',
		        data:{
		        	title:'我的工作区',
		        	tabRoot:'institutionInfoOther'
		        },
		        deepStateRedirect: true,
		        sticky: true,
		        views:{
		            'institutionInfoOther@':{
		            	template:'<div ui-view class="full-height full-width"></div>',
		            	controller:function() {
		            	}
		            }
		        }
			});
			
			
			states.push({
				name:'institutionInfoOther.institutionOther',
		        url:'/institutionOther',
		        data:{
		        	title:'机构信息',
		        	tabRoot:'institutionInfoOther'
		        },
		        views:{
		        	'@institutionInfoOther':{
		        		templateUrl:baseUrl+'views/hcpms/institutionOther/list.html',
		        		controller:'institutionListOtherCtrl'
		        	}
		        }
			});
			
			states.push({
				name:'institutionInfoOther.pharmacyOther',
		        url:'/pharmacyOther',
		        data:{
		        	title:'机构信息',
		        	tabRoot:'institutionInfoOther'
		        },
		        views:{
		        	'@institutionInfoOther':{
		        		templateUrl:baseUrl+'views/hcpms/institutionOther/list.html',
		        		controller:'pharmacyListOtherCtrl'
		        	}
		        }
			});
			
			states.push({
				name:'institutionInfoOther.addInstitutionOther',
		        url:'/addInstitutionOther',
		        data:{
		        	title:'机构信息',
		        	tabRoot:'institutionInfoOther'
		        },
		        views:{
		        	'@institutionInfoOther':{
		        		templateUrl:baseUrl+'views/hcpms/institutionOther/newBase_info.html',
		        		controller:'institutionAddOtherCtrl'
		        	}
		        }
			});
			
	        states.push({
	            name:'institutionInfoOther.institutionDetailOther',
	            url:'/institutionDetailOther/:providerid/:type',
	            data:{
	                title:'机构信息',
	                tabRoot:'institutionInfoOther'
	            },
	            views:{
	                '@institutionInfoOther':{
	                    templateUrl:baseUrl+'views/hcpms/institutionOther/base_info.html',
	                    controller:'institutionDetailOtherCtrl'
	                }
	            }
	        });
	        
	        states.push({
	            name:'institutionInfoOther.phmaracyDetailOther',
	            url:'/phmaracyDetailOther/:providerid/:type',
	            data:{
	                title:'机构信息',
	                tabRoot:'institutionInfoOther'
	            },
	            views:{
	                '@institutionInfoOther':{
	                    templateUrl:baseUrl+'views/hcpms/institutionOther/pharmacy_info.html',
	                    controller:'institutionDetailOtherCtrl'
	                }
	            }
	        });
	        
	        
	        
	        states.push({
	            name:'institutionInfoOther.relationOther',
	            url:'/relationOther/:providerid/:type',
	            data:{
	                title:'机构信息',
	                tabRoot:'institutionInfoOther'
	            },
	            views:{
	                '@institutionInfoOther':{
	                    templateUrl:baseUrl+'views/hcpms/institutionOther/relation_info.html',
	                    controller:'relationOtherCtrl'
	                }
	            }
	        });
	        
	        
	        
	        states.push({
	            name:'institutionInfoOther.doctorInfoDetailOther',
	            url:'/doctorInfoDetailOther/:providerid/:type',
	            data:{
	                title:'机构信息',
	                tabRoot:'institutionInfoOther'
	            },
	            views:{
	                '@institutionInfoOther':{
	                    templateUrl:baseUrl+'views/hcpms/institutionOther/doctor_info.html',
	                    controller:'doctorInfoOtherCtrl'
	                }
	            }
	        });
	        
	        states.push({
	            name:'institutionInfoOther.addDoctorInfoOther',
	            url:'/addDoctorInfoOther/:providerid/:doctorId/:type',
	            data:{
	                title:'机构信息',
	                tabRoot:'institutionInfoOther'
	            },
	            views:{
	                '@institutionInfoOther':{
	                    templateUrl:baseUrl+'views/hcpms/institutionOther/doctor_info_add.html',
	                    controller:'addDoctorInfoOtherCtrl'
	                }
	            }
	        });
	        
	}]);
	
})();